#include <iostream>
#include <cstring>
using namespace std;

//函数模板Max
template < typename Type>
Type Max( Type a, Type b ) 
{     
    if ( a >b )     
        return a ;
    else 
        return b;
}
//普通函数Max
const char* Max(const char* str1,const char* str2)
{
    if(strcmp(str1,str2)>0)
        return str1;
    else
        return str2;
}

int main()
{
   //调用模板函数Max
  cout << "Max(t, v) = " <<Max('t', 'v') << endl;
  cout << "Max(10.1, 15.2) = " <<Max(10.1, 15.2) << endl;
  cout << "Max(5, 6) = "<<Max <int> (6,5) <<endl;
  
  //调用普通函数Max(char* ,char* )
  cout << "Max(bag, big) = " << Max("bag","big") << endl; 

  return 0;
}
